package com.wuhainan.beelzebub.entity.system;

import com.wuhainan.beelzebub.common.BaseEntity;
import org.hibernate.annotations.Formula;

import javax.persistence.Entity;

/**
 * <br>Created by 吴海南 on 2017-12-18.
 * <br>星期一 at 下午 4:53.
 */
@Entity
public class CategoryDetails extends BaseEntity {

    private String name;
    private Integer sort;
    private String hospitalCode;
    private Boolean connectToGoods;
    private String chargeItemTypeId;
    private String goodsId;
    private String note;
    private String phoneticCode;
    private Double price;
    private String unit;
    private Integer type;
    @Formula("(select cit.type_name from charge_item_type cit where cit.id = charge_item_type_id)")
    private String typeName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getHospitalCode() {
        return hospitalCode;
    }

    public void setHospitalCode(String hospitalCode) {
        this.hospitalCode = hospitalCode;
    }

    public Boolean getConnectToGoods() {
        return connectToGoods;
    }

    public void setConnectToGoods(Boolean connectToGoods) {
        this.connectToGoods = connectToGoods;
    }

    public String getChargeItemTypeId() {
        return chargeItemTypeId;
    }

    public void setChargeItemTypeId(String chargeItemTypeId) {
        this.chargeItemTypeId = chargeItemTypeId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getPhoneticCode() {
        return phoneticCode;
    }

    public void setPhoneticCode(String phoneticCode) {
        this.phoneticCode = phoneticCode;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
